Fixed SVACE issues in ktx-loader.cpp + general maintenance.
- simplified the navigation of the file stream: the ktx metadata is
skipped with a single fseek() from SEEK_CUR, by the number of bytes
known from the ktx header;
- removed the allocation of a single large buffer: image data is read
from file, per image, directly into a buffer to be transferred to
PixelData;
- using std::unique_ptr<> to manage the scope of the file handle and
image buffer;
- removed local arrays of image sizes and buffer pointers as a total
of no more than one of these is used at any given time;
Change-Id: If51688568dd90dc1117b3c9a0de10f6c429bd394
Signed-off-by: György Straub <g.straub@partner.samsung.com>