Changed convertToBitmap return type